public class Three {
    public boolean IsContinuous (int[] numbers) {
        boolean[] hash=new boolean[14];
        int maxVal=0,minVal=14;
        for (int x : numbers) {
            if (x != 0) {
                if(hash[x])
                    return false;
                hash[x]=true;
                maxVal=Math.max(maxVal,x);
                minVal=Math.min(minVal,x);
            }
        }
        return maxVal-minVal<=4;
    }
}
